package cn.kgc.mapper;
import cn.kgc.pojo.DmTrade;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DmTradeMapper {

//根据id获取表数据
public DmTrade getDmTradeById(@Param(value = "id") Long id) throws Exception;

//多条件查询获取表中的数据，返回满足条件的一条或多条数据
public List<DmTrade> getDmTradeListByMap(Map<String,Object> param) throws Exception;

//多条件获取满足条件的总记录数据
public Integer getDmTradeCountByMap(Map<String,Object> param)throws Exception;

//插入表数据
public Integer insertDmTrade(DmTrade dmTrade)throws Exception;

//修改表数据
public Integer updateDmTrade(DmTrade dmTrade)throws Exception;

//删除表数据
public Integer deleteDmTradeById(@Param(value = "id") Long id)throws Exception;

}